|
|
|
|
|
|
|
'DISPLAY A MESSAGE
Response.Write ("<H1> Information Updated!</H1>")
AskForAuthors
End Sub
Select Case Request.QueryString("mode")
Case "search"
GetAuthorList
Case "dispedit"
DisplayEditScreen
Case "updatedata"
UpdateDBInfo
Case Else
AskForAuthors
End Select
Set rs = Nothing
Set cn = Nothing
%>
</TABLE>
</BODY></HTML> |
|
|
|
|
|
|
|
|
|
When working with user input, be wary of the quote character. You might need to write a function to manipulate quotes in a form field before using the field value in a SQL statement.  |
|
|
|
|
|
|
|
|
|
|
Listing 31.5 is a single ASP file, yet it generates four distinct HTML screens. The query string parameter mode determines what action the ASP page performs. |
|
|
|
|
|
|
|
|
Active Server Pages has several built-in objects accessible from script code. So far, you have seen some examples of the Response and the Server objects. In this section, you explore these objects in a little more detail and give examples of their uses. The objects are as follows: |
|
|
|
|
|